home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / c4 / pro2 / 1n04078b < prev    next >
Text File  |  1990-08-09  |  320b  |  16 lines

  1.  
  2. Figure 2: DoDialog()
  3. --------------------
  4. /*
  5.  * DoDialog
  6.  */
  7. int DoDialog(HANDLE hInst,HWND hWnd,char *Res,
  8.                  FARPROC lpProc){
  9.    FARPROC lpfn;
  10.    BOOL ret;
  11.    lpfn = MakeProcInstance(lpProc,hInst);
  12.    ret  = DialogBox(hInst,Res,hWnd,lpfn);
  13.    FreeProcInstance(lpfn);
  14.    return(ret);
  15.    }
  16.